package com.piece.module.flowable.service;

import com.piece.core.jpa.repository.BaseService;
import com.piece.module.flowable.model.WfCategory;
import com.piece.module.flowable.repository.WfCategoryRepository;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.PostConstruct;

@Service
@Transactional
public class WfCategoryService extends BaseService<WfCategory, Long> {

    @Autowired
    private WfCategoryRepository wfCategoryRepository;

    @PostConstruct
    public void initRepository() {
        setRepository(wfCategoryRepository);
    }
}
